#include "mta.h"
#include "MTAfunctional.h"

using namespace mta;
using namespace std;

int main(){
		MTAData m = MTAData("MTA_train_stop_data.txt", "transfers.txt");
		m.perform_if(onRoute('A'), print());
		cout << endl;

		list<string> l = m.hereToThere("A41", inHarlem());
		//turn the list into trainStopData*
		std::vector<trainStopData*> v;
		for(string s : l){
				v.push_back(m.getById(s));
		}
		m.perform_if(v.begin(), v.end(), all(), printNameOnly());
		cout << endl;

		list<string> l2 = m.hereToThere("F29", toTheLIRR());
		std::vector<trainStopData*> v2;
		for(string s : l2){
				v2.push_back(m.getById(s));
		}
		m.perform_if(v2.begin(), v2.end(), all(), printNameOnly());
}